@(content: Html)

@import helper._

<!DOCTYPE html>

<html>
<head>
<title>@Messages("title")</title>
<style>
  body {
    padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
  }
</style>
<link rel='stylesheet' href='@routes.WebJarAssets.at(WebJarAssets.locate("css/bootstrap.css"))' >
<link rel="stylesheet" media="screen" href='@routes.Assets.at("stylesheets/main.css")'>
<link rel="shortcut icon" type="image/png" href='@routes.Assets.at("images/favicon.png")'>
</head>
<body>

  <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="@routes.Resources.index">@Messages("title")</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="dropdown">
          <a href="#" class="active dropdown-toggle" data-toggle="dropdown">@Messages("nav.res.menu") <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="@routes.Resources.index">@Messages("nav.res.view")</a></li>
            <li><a href="@routes.Resources.create">@Messages("nav.res.new")</a></li>
          </ul>
        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">@Messages("nav.grp.menu") <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="@routes.Groups.list">@Messages("nav.grp.view")</a></li>
            <li><a href="@routes.Groups.create">@Messages("nav.grp.new")</a></li>
          </ul>
        </li>
      </ul>
      @form(routes.Resources.search, 'class -> "navbar-form navbar-right") {
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search" name="expression" id="expression">
        </div>
        <button type="submit" class="btn btn-default">
          <span class="glyphicon glyphicon-search"></span>
        </button>
      }
    </div><!-- /.navbar-collapse -->
  </nav>

  <div class="container">
      @content
  </div>

  <!-- Le javascript
  ================================================== -->
  <!-- Placed at the end of the document so the pages load faster -->
  <script type='text/javascript' src='@routes.WebJarAssets.at(WebJarAssets.locate("jquery.js"))'></script>
  <script type='text/javascript' src='@routes.WebJarAssets.at(WebJarAssets.locate("js/bootstrap.js"))'></script>
</body>
</html>
